package com.yx.system.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.yx.system.entity.TdBook;
import com.yx.system.entity.TdCategory;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 一级分类
 */
@Mapper
@Repository
public interface TdCategoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdCategory record);

    int insertSelective(TdCategory record);

    TdCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdCategory record);

    int updateByPrimaryKey(TdCategory record);

    List<TdCategory> queryAll();

    /**
     * 查询一级分类列表
     */
    List<TdCategory> queryList(Map<String, Object> map);

    List<TdCategory> queryPageList(Page<TdCategory> pageUtil, Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

}